/**
 * @file Tool.cpp
 *
 * @date 15/12/2011
 * @author Tales 
 *
 */

#include "Tool.hpp"
#include "Editor.hpp"
#include "../common/Error.hpp"
namespace yep
{

Tool::~Tool()
{
}

Tool::Tool()
{
	editor = NULL;
}

Editor &Tool::getEditor() const
{
	YEP_ASSERT(editor != NULL);
	return *editor;
}

void Tool::setEditor(Editor &editor)
{
	this->editor = &editor;
}

Picture & Tool::getPicture()
{
	YEP_ASSERT(editor->picture != NULL);
	return *editor->picture;
}

} /* namespace yep */
